package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import com.lzy.okgo.model.Response
import fhp.hlhj.giantfold.interfaces.IJdList
import fhp.hlhj.giantfold.javaBean.JDBean
import fhp.hlhj.giantfold.module.JdListModule

/**
 * author: FHP
 * data: on 2018\1\29 0029 16:22
 * E-Mail: 103945089@qq.com
 */
class JdListPrensenter(private val iJdList: IJdList) : JdListModule.onJdListListener {

    private val module=JdListModule()


    fun getJdList(params: HttpParams){
        module.getJdList(params,this)
    }
    override fun onOrdersListener(jdBean: Response<String>) {
        iJdList.getJdOrderList(jdBean)

    }
}